package com.example;
import static org.junit.Assert.*;

import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;


public class CircleTest {
	
	  Circle testObject;
	  private static final double DELTA = 1e-15; 
	  @Before
      public void setUp() throws Exception {
		  testObject = new Circle();
      }
	  

	@Test
	public void testCalcArea() {
	
		testObject.radio = 5; 
		double expArea = Math.PI * 25;
		double area = testObject.calcArea();
		
		//Assert.assertEquals(expArea, area);
		Assert.assertEquals(expArea, area,  DELTA); 		 
	}


	@Test
	public void testCalcGrith() {
        if (testObject.equals(null)){ 
			assertEquals(true, false);
		}
		testObject.radio = 5;
		double grith = Math.PI * 10;		
		Assert.assertEquals(grith, testObject.calcGrith(),  DELTA); 
	}

}